package pers.rcl.web;

import com.jfinal.core.Controller;
import com.jfinal.plugin.redis.Cache;
import com.jfinal.plugin.redis.Redis;

import pers.rcl.common.routes.ControllerBind;

@ControllerBind(path = "/test/redis")
public class RedisController extends Controller{
	public void getCacheValue() {
		Cache cache = Redis.use();
		String testStr = cache.get("test_str");
		cache.del("test_str");
		
		renderJson(testStr);
	}
}
